package cn.zzuli.manager.service.impl;

import org.springframework.stereotype.Service;

import java.util.Map;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import cn.zzuli.common.utils.PageUtils;
import cn.zzuli.common.utils.Query;

import cn.zzuli.manager.dao.LogsInfoDao;
import cn.zzuli.manager.entity.LogsInfoEntity;
import cn.zzuli.manager.service.LogsInfoService;


@Service("logsInfoService")
public class LogsInfoServiceImpl extends ServiceImpl<LogsInfoDao, LogsInfoEntity> implements LogsInfoService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<LogsInfoEntity> page = this.page(
                new Query<LogsInfoEntity>().getPage(params),
                new QueryWrapper<LogsInfoEntity>()
        );

        return new PageUtils(page);
    }

}